package com.feige.service;

import com.feige.pojo.Dept;
import com.baomidou.mybatisplus.extension.service.IService;
import com.feige.pojo.vo.BaseDeptVo;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 部门表 服务类
 * </p>
 *
 * @author feige
 * @since 2020-10-23
 */
public interface DeptService extends IService<Dept> {

    List<Dept> queryAllDept();

    List<BaseDeptVo> queryAllDeptTree(List<Long> ids);

    List<Long> queryDeptIds(Long id);

    int saveDept(Dept dept);

    int updateDeptById(Dept dept);

    List<Dept> listDeptExcludeChild(Long id);

}
